
package com.shangsi.hellospringbootstarterautoconfigure.service;

import com.shangsi.hellospringbootstarterautoconfigure.properties.HelloProperties;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 默认不添加到容器中，在autoConfigure中控制
 * @author dzd
 * @date 2022-01-14
 */
public class HelloService {

    @Autowired
    private HelloProperties helloProperties;


    public String sayHello(String userName){
        return helloProperties.getPrefix()+":"+userName+"->"+helloProperties.getSuffix();

    }
}
